<?php
/**
 * Library Of Shared Code (LOSC)
 *
 * LICENSE
 *
 * This source file is subject to the New BSD License that is bundled
 * with this package in the file LICENSE.txt.
 *
 * @category   LOSC Framework
 * @package    Record
 * @subpackage Converter
 * @copyright  Copyright (c) 2008 Robin Skoglund (http://robinsk.net/)
 * @license    http://creativecommons.org/licenses/BSD/  New BSD License
 */

/**
 * Class for converting Doctrine records to XML
 *
 * @category   LOSC Framework
 * @package    Record
 * @subpackage Converter
 * @copyright  Copyright (c) 2008 Robin Skoglund (http://robinsk.net/)
 * @license    http://creativecommons.org/licenses/BSD/  New BSD License
 */
class Losc_Record_Converter_Xml
{
    public function recordToDomElement(Doctrine_Record $record)
    {
        $doc = new DOMDocument();
        
        $recordArray = $record->toArray();
        $recordArray2 = $record->toArray(null, true);
        
        echo '<h1>$recordArray</h1>';
        var_dump($recordArray);
        
        echo '<h1>$recordArray2</h1>';
        var_dump($recordArray2);
    }
}
